/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package drinkcounter.model;

import javax.persistence.Entity;
import javax.persistence.ManyToOne;

/**
 *
 * @author Toni
 */
@Entity
public class ParticipantHistorySnapshot extends AbstractEntity{
    private String name;
    private float alcoholLevel;
    private int drinkCount;
    private PartyHistorySnapshot historySnapshot;

    public float getAlcoholLevel() {
        return alcoholLevel;
    }

    public void setAlcoholLevel(float alcoholLevel) {
        this.alcoholLevel = alcoholLevel;
    }

    public int getDrinkCount() {
        return drinkCount;
    }

    public void setDrinkCount(int drinkCount) {
        this.drinkCount = drinkCount;
    }

    @ManyToOne
    public PartyHistorySnapshot getHistorySnapshot() {
        return historySnapshot;
    }

    public void setHistorySnapshot(PartyHistorySnapshot historySnapshot) {
        this.historySnapshot = historySnapshot;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
}
